//
//  CHAlertView.h
//  SZTZ
//
//  Created by 陈浩 on 2017/3/16.
//  Copyright © 2017年 陈浩. All rights reserved.
//

#import <Foundation/Foundation.h>
@class CHAlertView;

@protocol CHAlertViewDelegate <NSObject>

- (void)alertView:(CHAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex;

@end


@interface CHAlertView : UIView


@property (nonatomic ,strong)  id <CHAlertViewDelegate> delegate;

-(instancetype)initWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitle:(NSString *)otherButtonTitle;

@end
